Skip to content

feat: add dropdown for selecting page size options in list view#603

Open
kulikp1 wants to merge 2 commits intonextfrom
feature/AdminForth/1586/add-dropdown-to-select-count-o
Open

feat: add dropdown for selecting page size options in list view#603
kulikp1 wants to merge 2 commits intonextfrom
feature/AdminForth/1586/add-dropdown-to-select-count-o

Conversation

@kulikp1
Copy link
Copy Markdown
Collaborator

@kulikp1 kulikp1 commented May 8, 2026

No description provided.

Comment thread adminforth/spa/src/components/ResourceListTable.vue Outdated
return array.map(size => ({ label: size.toString(), value: size }));
});

const pageSize = ref(DEFAULT_PAGE_SIZE);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const pageSize = computed(() => coreStore.resource?.options?.listPageSize || DEFAULT_PAGE_SIZE);

Why you changed this?

Are you sure old one is working?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original computed property was read-only, which caused problems because we needed to update pageSize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants